const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  routes: state => state.permission.routes,
  points: state => state.user.userInfo && state.user.userInfo.roles.points,
  userId: state => state.user.userInfo && state.user.userInfo.userId,
  avatar: state => state.user.userInfo && state.user.userInfo.staffPhoto,
  username: state => state.user.userInfo && state.user.userInfo.username

}
export default getters
